package com.hunan.chinamobile.constant;

public abstract class SysConstant {

    public static final String ONE_NET_URL = "http://api.heclouds.com";
    public static final String ONE_NET_APPKEY = "k=nt1e18hrXG=RWleL8lKlIVr0Y=";

    public static final String ROLE_USER = "ROLE_USER";
    public static final String ROLE_OPERATION = "ROLE_OPERATION";


    public static String getRssi(int rssi){
        int initVal = 113;
        if(rssi == 0){
            return "-"+initVal+"dBm";
        }else if(rssi == 99){
            return "无信号";
        }else{
            return "-"+(initVal - (rssi << 1))+"dBm";
        }
    }
}
